﻿using ReflectionStudio.Core.Events;
using System;
using System.ComponentModel;
using System.Data;
using System.Linq;
using System.Windows;
namespace WPFExcelReport
{
    /// <summary>
    /// Interaction logic for EditEventWindow.xaml
    /// </summary>
    public partial class TICC_MKRF
    { 
         
        public TICC_MKRF()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            MV = new VICC_MKRF();
            DataContext = MV;
            MESSAGES += "RESPLIT;";
            InitializeComponent();
        }
        public override void OnABFChg(string abf)
        {
            TMV.LOADABF(abf);
            base.OnABFChg(abf);
        }
        public override void OnWorkflowIDChange(MessageEventArgs e)
        {
            MessageInfo msg = e.Info;
            string task = msg.MSGTYPE;
            switch (task)
            {
                case "RESPLIT":
                    TMV.LOADABF(msg.P2);
                    TMV.RESPLIT(msg);
                    break;
            }
        }

        /// <summary>
        /// 根据作业采集的机台，重新组织
        /// 1.任务个数
        /// 2.进度
        /// </summary>
        /// <param name="msg"></param>
      
        private void GetActualData(DataRow _dwJob)
        {

        }

        private void ReSplitCommand(object sender, RoutedEventArgs e)
        {
            //RESPLIT("");
        }
    }
}
